package com.twu.biblioteca;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.util.ArrayList;

public class Main {

    private static PrintStream out;
    private static BufferedReader in;
    private static ArrayList<String> books;
    private static Menu menu;
    private static Biblioteca biblioteca;
    private static Library library;
    private static ArrayList<String> options;

    public static void main(String[] args) throws IOException {
        books = new ArrayList<String>();
        books.add("Tom Sawyer");
        library = new Library(books);

        options = new ArrayList<String>();
        options.add("List Books");
        menu = new Menu(options);

        out = System.out;
        in = new BufferedReader(new InputStreamReader(System.in));
        biblioteca = new Biblioteca(out,in,library, menu);

        biblioteca.run();
    }

}
